home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 698 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  892 b 

  1. Path: news.tu-chemnitz.de!news
  2. From: hfst@hrz.tu-chemnitz.de (Hans Steffani)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: REQ: Circle function?
  5. Date: 8 Jan 96 16:53:47 GMT
  6. Organization: University of Technology Chemnitz, FRG
  7. Message-ID: <4cri9r$1qo@pyrrhus-f.hrz.tu-chemnitz.de>
  8. References: <4cl6hb$him@news.doit.wisc.edu>
  9. NNTP-Posting-Host: prom.hrz.tu-chemnitz.de
  10.  
  11. nicks@njackn.com (Nick A. Scheibel) writes:
  12.  
  13. >I'm writing a small graphics lib in C for use in my programs and I
  14. >can't figure out how to draw a circle. Can anyone point me to some
  15. >source that will accomplish this rather small task for me?
  16. >    -Nick Scheibel
  17.  
  18. Start with
  19.  x = x0 + r sin t
  20.  y = y0 + r cos t
  21. with
  22. 0 <= t < 2 Pi
  23.  
  24. to compute the koordinates of the points of the circle.
  25.  
  26. h.f.s.
  27. --
  28. Hans Friedrich Steffani
  29. Institut fuer Elektrische Maschinen und Antriebe
  30. TU Chemnitz-Zwickau
  31. e-mail: hans.steffani@e-technik.tu-chemnitz.de
  32.